package pearson.automation.api;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
 * handling HTTP authentication for API calls.
 */
public class MyAuthenticator extends Authenticator {
    /**
     * Password authentication.
     * @return password authenticator
     */
    protected final PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(
                "opensesame",
                new String("#pears0n").toCharArray());
    }
}
